<div class="page">
		<!--Sideshow start-->
                <ul class="slideshow">
                        <li>
                                <a href="#"><img src="{$media}/slideshow/banner01.jpg" width="950" height="420" alt="Tattoo Portal.org" /></a>
                                <div class="caption">
                                        <strong>Fresh New Stories</strong><br />
                                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam diam quam, malesuada vitae aliquet id, interdum id mauris. Maecenas faucibus sapien dignissim metus dictum in consequat mi posuere.
                                </div>
                        </li>
                        <li>
                                <a href="#"><img src="{$media}/slideshow/banner02.jpg" width="950" height="420" alt="Tattoo Portal.org" /></a>
                                <div class="caption">
                                        <strong>Fresh New Stories</strong><br />
                                        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam diam quam, malesuada vitae aliquet id, interdum id mauris. Maecenas faucibus sapien dignissim metus dictum in consequat mi posuere.
                                </div>
                        </li>
                        <li>
                                <a href="#"><img src="{$media}/slideshow/banner03.jpg" width="950" height="420" alt="Tattoo Portal.org" /></a>
                        </li>
                </ul>
                <!--Sideshow end-->
		<!--Page content start-->
		<div class="sidebar_page">
			<div class="content">
				<!--News rotator-->
				<ul class="news_overview">
				{foreach from=$posts item='post'}	
                                        <li>
                                            
						<a class="art_image_left" href="#"><img width="160" height="130" src="{$post.slika}" alt="Face Tattoo" /></a>
						<h2><a href="{$url}/?page=magazin_single&p={$post.id}">{$post.naslov}</a></h2>
						<p class="abstract">{$post.tekst}...</p>
						<p class="autor">{$post.datum|date_format:"%d.%m.%Y"} {$post.username}</p>
                                            
					</li>
				{/foreach}
					<li>
                                
						<h2><a href="#">Ostali tekstovi</a></h2>
                                {foreach from=$otherPosts item='otherPost'}
						<p class="links">
							<a href="{$url}/?page=magazin_single&p={$otherPost.id}">{$otherPost.naslov}</a>
							
						</p>
                                {/foreach}
					</li>
                               
				</ul>

				<!--Tabbed galleries (last published+last commented)-->
				<div class="tabbed">
					<div class="tabs_hold">
						<a class="current" href="#last_published_gal" rel="inpage">Polsednje objavljeni radovi</a>
						<a href="#last_commented_gal" rel="inpage">Poslednje komentarisani radovi</a>
						<a href="#most_likes_gal" rel="inpage">Najpopularniji radovi</a>
					</div>
					<div class="tabs_cont_hold">
						<div id="last_published_gal" class="tab_cont">
							<div id="last_published" class="clearfix thumb_gall">
                                                                <div class="scrollPanel">
                                                                    <div class="slide">
                                                                    {foreach from=$lastPhotos item='lastPhoto'}    
                                                                        <div class="gal_item">
                                                                                <a class="thumb" href="{$url}/?page=galerija_single&photo_id={$lastPhoto.id}" title="Pogledajte uvećanu sliku"><img src="{$media}/autori/thumbs/{$lastPhoto.username}/{$lastPhoto.slika}" alt="{$lastPhoto.naziv}" /></a>
                                                                                <a class="img_det_user" href="{$url}/?page=profil&clan_id={$lastPhoto.ime}" title="Pogledajte profil">{$lastPhoto.username}</a>
                                                                        </div>
                                                                    {/foreach}    
                                                                   
                                                                    </div>
                                                                    <div class="slide">
                                                                        
                                                                        {foreach from=$lastPhotos2 item='lastPhoto2'}    
                                                                        <div class="gal_item">
                                                                                <a class="thumb" href="{$url}/?page=galerija_single&photo_id={$lastPhoto2.id}" title="Pogledajte uvećanu sliku"><img src="{$media}/autori/thumbs/{$lastPhoto2.username}/{$lastPhoto2.slika}" alt="{$lastPhoto2.naziv}" /></a>
                                                                                <a class="img_det_user" href="{$url}/?page=profil&clan_id={$lastPhoto2.ime}" title="Pogledajte profil">{$lastPhoto2.username}</a>
                                                                        </div>
                                                                        {/foreach}
                                                                       
                                                                    </div>
                                                               </div>

							</div><!--end of .thumb_gall-->
							<div id="last_published_nav" class="gal_nav">
								<a class="prev" href="#" title="Noviji radovi" rel="noindex, nofollow">Prethodna</a>
								<a class="next" href="#" title="Stariji radovi" rel="noindex, nofollow">Sledeća</a>
							</div>
						</div><!--end of .tab_cont-->

						<div id="last_commented_gal" class="tab_cont">
							<div id="last_commented" class="clearfix thumb_gall">
                                                            <div class="scrollPanel">
                                                            <div class="slide">
                                                            {foreach from=$mostCommentedPhotos item='mostCommentedPhoto'}
								<div class="gal_item">
									<a class="thumb" href="{$url}/?page=galerija_single&photo_id={$mostCommentedPhoto.id}" title="Pogledajte uvećanu sliku"><img src="{$media}/autori/thumbs/{$mostCommentedPhoto.username}/{$mostCommentedPhoto.slika}" alt="{$mostCommentedPhoto.naziv}" /></a>
									<a class="img_det_user" href="{$url}/?page=profil&clan_id={$mostCommentedPhoto.ime}" title="Pogledajte profil">{$mostCommentedPhoto.username}</a>
									<span class="img_det_comments">{$mostCommentedPhoto.broj_komentara}</span>
								</div>
                                                            {/foreach}   
                                                            </div>
                                                            <div class="slide">
                                                            {foreach from=$mostCommentedPhotos2 item='mostCommentedPhoto2'}
								<div class="gal_item">
									<a class="thumb" href="{$url}/?page=galerija_single&photo_id={$mostCommentedPhoto2.id}" title="Pogledajte uvećanu sliku"><img src="{$media}/autori/thumbs/{$mostCommentedPhoto2.username}/{$mostCommentedPhoto2.slika}" alt="{$mostCommentedPhoto2.naziv}" /></a>
									<a class="img_det_user" href="{$url}/?page=profil&clan_id={$mostCommentedPhoto2.ime}" title="Pogledajte profil">{$mostCommentedPhoto2.username}</a>
									<span class="img_det_comments">{$mostCommentedPhoto2.broj_komentara}</span>
								</div>
                                                            {/foreach}  
                                                                </div>
                                                                </div>        
							</div><!--end of .thumb_gall-->
                                                        <div id="last_commented_nav" class="gal_nav">
								<a class="prev" href="#" title="Noviji radovi" rel="noindex, nofollow">Prethodna</a>
								<a class="next" href="#" title="Stariji radovi" rel="noindex, nofollow">Sledeća</a>
							</div>
						</div><!--end of .tab_cont-->

						<div id="most_likes_gal" class="tab_cont">
							<div id="most_popular" class="clearfix thumb_gall">
                                                            <div class="scrollPanel">
                                                                <div class="slide">
                                                                {foreach from=$mostPopularPhotos item='mostPopularPhoto'}
                                                                    <div class="gal_item">
                                                                            <a class="thumb" href="{$url}/?page=galerija_single&photo_id={$mostPopularPhoto.id}" title="Pogledajte uvećanu sliku"><img src="{$media}/autori/thumbs/{$mostPopularPhoto.username}/{$mostPopularPhoto.slika}" alt="{$mostPopularPhoto.naziv}" /></a>
                                                                            <a class="img_det_user" href="{$url}/?page=profil&clan_id={$mostPopularPhoto.ime}" title="Pogledajte profil">{$mostPopularPhoto.username}</a>
                                                                            <span class="img_det_views">{$mostPopularPhoto.broj_pregleda}</span>
                                                                            <span class="img_det_likes">{$mostPopularPhoto.broj_skljoceva}</span>
                                                                            <span class="img_det_comments">{$mostPopularPhoto.broj_komentara}</span>
                                                                    </div>                                                                
                                                                {/foreach}
                                                                </div>
                                                                <div class="slide">  
                                                                {foreach from=$mostPopularPhotos2 item='mostPopularPhoto2'}
                                                                    <div class="gal_item">
                                                                                <a class="thumb" href="{$url}/?page=galerija_single&photo_id={$mostPopularPhoto2.id}" title="Pogledajte uvećanu sliku"><img src="{$media}/autori/thumbs/{$mostPopularPhoto2.username}/{$mostPopularPhoto2.slika}" alt="{$mostPopularPhoto2.naziv}" /></a>
                                                                                <a class="img_det_user" href="{$url}/?page=profil&clan_id={$mostPopularPhoto2.ime}" title="Pogledajte profil">{$mostPopularPhoto2.username}</a>
                                                                                <span class="img_det_views">{$mostPopularPhoto2.broj_pregleda}</span>
                                                                                <span class="img_det_likes">{$mostPopularPhoto2.broj_skljoceva}</span>
                                                                                <span class="img_det_comments">{$mostPopularPhoto2.broj_komentara}</span>
                                                                    </div>
                                                                {/foreach}    
                                                                </div>
                                                              </div>
                                                                </div><!--end of .thumb_gall-->
                                                                <div id="most_popular_nav" class="gal_nav">
                                                                        <a class="prev" href="#" title="Noviji radovi" rel="noindex, nofollow">Prethodna</a>
                                                                        <a class="next" href="#" title="Stariji radovi" rel="noindex, nofollow">Sledeća</a>
                                                                </div>
                                                        </div><!--end of .tab_cont-->

					</div><!--end of .tabs_cont_hold-->
				</div>

				<!-- Page bottom blocks -->
				<div class="cols3" id="botom_boxes">
					<div class="col">{$pool}</div>
					<div class="col">{include file="games.tpl"}</div>
					<div class="col">{include file="chat.tpl"}</div>
				</div>

			</div>
			<!--Content end (.content)-->
			<div class="sidebar">
                            <div id="banners">
                                <a href="#" title="Tattoo Konvencija Skoplje (video)" target="_blank"><img src="{$media}/baneri/Tattoo-2011.jpg" alt="Tattoo Konvencija" /></a>
                                <a href="#" title="InkFusion Tattoo" target="_blank"><img src="{$media}/baneri/inkfusion.JPG" alt="InkFusion" /></a>
                                <a href="#" title="BL Tattoo" target="_blank"><img src="{$media}/baneri/rrrrrrr.JPG" alt="BL Tattoo" /></a>
                                <a href="#" title="Sniper Tattoo" target="_blank"><img src="{$media}/baneri/sniper.JPG" alt="Sniper Tattoo" /></a>
                                <a href="#" title="Tattoo 018" target="_blank"><img src="{$media}/baneri/tattoo018 2.jpg" alt="Tattoo 018" /></a>
                                <a href="#" title="Tattoo Studio TRN" target="_blank"><img src="{$media}/baneri/trn.JPG" alt="Tattoo Studio TRN" /></a>
                                <a href="#" title="Your Mind Studio" target="_blank"><img src="{$media}/baneri/your.JPG" alt="Your Mind Studio" /></a>
                                <a href="#" title="Zix Tattoo" target="_blank"><img src="{$media}/baneri/zix banner.jpg" alt="Zix Tattoo" /></a>
                        </div>
                        </div>
		</div>
		<!--Page content end (.sidebar_page)-->
	</div>